package com.wing.product.model.request;

import com.wing.product.model.entity.WarehouseMaterialRequisitionRecordDetail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description="上机记录表")
@Data
public class WarehouseComputerPracticeForm {

    @Schema(description="生产计划id")
    private Long productionPlanId;

    @Schema(description="创建时间")
    private LocalDateTime createTime;

    @Schema(description="生产计划编号")
    private String productionPlanCode;

    @Schema(description="制令单id")
    private Long productionSchedulingPlanDetailId;

    @Schema(description="制令单编号")
    private String productionSchedulingPlanDetailCode;

    @Schema(description="所属生产订单id")
    private Long productionOrderId;

    @Schema(description="所属生产订单编号")
    private String productionOrderNumber;

    @Schema(description="产品规格码")
    private String productSpecCode;

    @Schema(description="产成品料号")
    private String customerProductCode;

    @Schema(description="生产产品id")
    private Long productId;

    @Schema(description="物料料号")
    private String materialNumber;

    @Schema(description="生产线id")
    private Long productionLineId;

    @Schema(description="车间id")
    private Long workshopId;

    @Schema(description="领料记录id")
    private Long materialRequisitionRecordId;

    @Schema(description="领料出库数量")
    private Integer warehouseMaterialNumber;

    @Schema(description="计划产量")
    private BigDecimal plannedQuantity;

    @Schema(description="计划生产时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime plannedProductionTime;

    @Schema(description="计划交货时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime plannedDeliveryTime;

    @Schema(description="领料记录明细")
    private WarehouseMaterialRequisitionRecordDetail warehouseMaterialRequisitionRecordDetail;
}
